<template>
  <a-table
    rowKey="id"
    class="wearing-table"
    :columns="callLogColumns"
    :dataSource="dataSource"
    @change="handleTableChange"
  >
    <template slot="action" slot-scope="records">
      <span class="operation deatil-color" @click="handleChange(records)">更换</span>
    </template>
  </a-table>
</template>

<script>
import { JeecgListMixinNew } from '@/mixins/JeecgListMixinNew'

export default {
  mixins: [JeecgListMixinNew],
  data() {
    return {
      url: {
        list: '/industry/machinePrintRecordPage',
      },
      callLogColumns: [
        {
          title: '序号',
          align: 'center',
          width: 100,
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          },
        },
        {
          title: '拨号时间',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: '通话建立时间',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: '通话时长',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: '通话号码',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: '呼叫类型',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: '呼叫状态',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
        {
          title: 'VOLTE状态',
          align: 'center',
          dataIndex: 'policeAgencyName',
          ellipsis: true,
        },
      ],
    }
  },
  method: {
    handleChange() {},
  },
}
</script>
